﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Configuration;
using System.Reflection;
using OgilvyOne.IDAL;


namespace OgilvyOne.DALFactory
{
    public class CreateInstance
    {
        private static readonly string path = ConfigurationManager.AppSettings["WebDAL"];
        public static IDAL.IDALArticleInfo CreateArticleInfo()
        {
            string className = path + ".DAlArticleInfo";
            return (IDALArticleInfo)Assembly.Load(path).CreateInstance(className);
        }
    }
}
